class emiconfig::argus7 {
  class {'fetchcrl':
    manage_carepo => false
  }
  class {'argus_server': 
  argus_host_dn          => '/C=CN/O=HEP/O=IHEP/OU=CC/CN=argus.ihep.ac.cn',
  admin_password         => 'lcg123',
  argus_host             => 'argus.ihep.ac.cn',
  packages               => ['java-1.8.0-openjdk', 'argus-authz', 'bdii', 'glite-info-provider-service'],
  pap_poll_interval      => 3600,
  pdp_retention_interval => 240,
  pap_policy             => {
                             permit => [
                               'pfqan = "/atlas/Role=lcgadmin/Capability=NULL"',
                               'pfqan = "/atlas/Role=lcgadmin"',
                               'pfqan = "/atlas/Role=production/Capability=NULL"',
                               'pfqan = "/atlas/Role=production"',
                               'pfqan = "/atlas/Role=pilot/Capability=NULL"',
                               'pfqan = "/atlas/Role=pilot"',
                               'pfqan = "/atlas/Role=NULL/Capability=NULL"',
                               'pfqan = "/atlas"',
                               'pfqan = "/belle/Role=lcgadmin/Capability=NULL"',
                               'pfqan = "/belle/Role=lcgadmin"',
                               'pfqan = "/belle/Role=production/Capability=NULL"',
                               'pfqan = "/belle/Role=production"',
                               'pfqan = "/belle/Role=pilot/Capability=NULL"',
                               'pfqan = "/belle/Role=pilot"',
                               'pfqan = "/belle/Role=NULL/Capability=NULL"',
                               'pfqan = "/belle"',
                               'pfqan = "/bes/Role=lcgadmin/Capability=NULL"', 
                               'pfqan = "/bes/Role=lcgadmin"',
                               'pfqan = "/bes/Role=production/Capability=NULL"',
                               'pfqan = "/bes/Role=production"',
                               'pfqan = "/bes/Role=pilot/Capability=NULL"',
                               'pfqan = "/bes/Role=pilot"',
                               'pfqan = "/bes/Role=NULL/Capability=NULL"',
                               'pfqan = "/bes"',
                               'pfqan = "/biomed/Role=lcgadmin/Capability=NULL"',
                               'pfqan = "/biomed/Role=lcgadmin"',
                               'pfqan = "/biomed/Role=production/Capability=NULL"',
                               'pfqan = "/biomed/Role=production"',
                               'pfqan = "/biomed/Role=NULL/Capability=NULL"',
                               'pfqan = "/biomed"',
                               'pfqan = "/cepc/Role=lcgadmin/Capability=NULL"',
                               'pfqan = "/cepc/Role=lcgadmin"',
                               'pfqan = "/cepc/Role=production/Capability=NULL"',
                               'pfqan = "/cepc/Role=production"',
                               'pfqan = "/cepc/Role=NULL/Capability=NULL"',
                               'pfqan = "/cepc"',			       
                               'pfqan = "/cms/escms/Role=production/Capability=NULL"',
                               'pfqan = "/cms/escms/Role=production"',
                               'pfqan = "/cms/escms/Role=NULL/Capability=NULL"',
                               'pfqan = "/cms/escms"',
                               'pfqan = "/cms/Role=lcgadmin/Capability=NULL"',
                               'pfqan = "/cms/Role=lcgadmin"',
                               'pfqan = "/cms/Role=production/Capability=NULL"',
                               'pfqan = "/cms/Role=production"',
                               'pfqan = "/cms/Role=pilot/Capability=NULL"',
                               'pfqan = "/cms/Role=pilot"',
                               'pfqan = "/cms/HeavyIons/Role=NULL/Capability=NULL"',
                               'pfqan = "/cms/HeavyIons"',
                               'pfqan = "/cms/becms/Role=NULL/Capability=NULL"',
                               'pfqan = "/cms/becms"',
                               'pfqan = "/cms/dcms/Role=NULL/Capability=NULL"',
                               'pfqan = "/cms/dcms"',
                               'pfqan = "/cms/Higgs/Role=NULL/Capability=NULL"',
                               'pfqan = "/cms/Higgs"',
                               'pfqan = "/cms/StandardModel/Role=NULL/Capability=NULL"',
                               'pfqan = "/cms/StandardModel"',
                               'pfqan = "/cms/Susy/Role=NULL/Capability=NULL"',
                               'pfqan = "/cms/Susy"',
                               'pfqan = "/cms/Role=NULL/Capability=NULL"',
                               'pfqan = "/cms"',
                               'pfqan = "/enmr.eu/Role=lcgadmin/Capability=NULL"',
                               'pfqan = "/enmr.eu/Role=lcgadmin"',
                               'pfqan = "/enmr.eu/Role=SoftwareManager/Capability=NULL"',
                               'pfqan = "/enmr.eu/Role=SoftwareManager"',
                               'pfqan = "/enmr.eu/Role=production/Capability=NULL"',
                               'pfqan = "/enmr.eu/Role=production"',
                               'pfqan = "/enmr.eu/Role=pilot/Capability=NULL"',
                               'pfqan = "/enmr.eu/Role=pilot"',
                               'pfqan = "/enmr.eu/Role=NULL/Capability=NULL"',
                               'pfqan = "/enmr.eu"',
                               'pfqan = "/esr/Role=lcgadmin/Capability=NULL"',
                               'pfqan = "/esr/Role=lcgadmin"',
                               'pfqan = "/esr/Role=production/Capability=NULL"',
                               'pfqan = "/esr/Role=production"',
                               'pfqan = "/esr/Role=pilot/Capability=NULL"',
                               'pfqan = "/esr/Role=pilot"',
                               'pfqan = "/esr/Role=NULL/Capability=NULL"',
                               'pfqan = "/esr"',
                               'pfqan = "/ilc/Role=lcgadmin/Capability=NULL"',
                               'pfqan = "/ilc/Role=lcgadmin"',
                               'pfqan = "/ilc/Role=production/Capability=NULL"',
                               'pfqan = "/ilc/Role=production"',
                               'pfqan = "/ilc/Role=pilot/Capability=NULL"',
                               'pfqan = "/ilc/Role=pilot"',
                               'pfqan = "/ilc/Role=NULL/Capability=NULL"',
                               'pfqan = "/ilc"',
                               'pfqan = "/juno/Role=lcgadmin/Capability=NULL"',
                               'pfqan = "/juno/Role=lcgadmin"',
                               'pfqan = "/juno/Role=production/Capability=NULL"',
                               'pfqan = "/juno/Role=production"',
                               'pfqan = "/juno/Role=pilot/Capability=NULL"',
                               'pfqan = "/juno/Role=pilot"',
                               'pfqan = "/juno/Role=junoglidein/Capability=NULL"',
                               'pfqan = "/juno/Role=junoglidein"',
                               'pfqan = "/juno/Role=NULL/Capability=NULL"',
                               'pfqan = "/juno"',
                               'pfqan = "/lhcb/Role=lcgadmin/Capability=NULL"',
                               'pfqan = "/lhcb/Role=lcgadmin"',
                               'pfqan = "/lhcb/Role=production/Capability=NULL"',
                               'pfqan = "/lhcb/Role=production"',
                               'pfqan = "/lhcb/Role=pilot/Capability=NULL"',
                               'pfqan = "/lhcb/Role=pilot"',
                               'pfqan = "/lhcb/Role=NULL/Capability=NULL"',
                               'pfqan = "/lhcb"',
                               'pfqan = "/vo.france-asia.org/Role=lcgadmin/Capability=NULL"',
                               'pfqan = "/vo.france-asia.org/Role=lcgadmin"',
                               'pfqan = "/vo.france-asia.org/Role=production/Capability=NULL"',
                               'pfqan = "/vo.france-asia.org/Role=production"',
                               'pfqan = "/vo.france-asia.org/Role=pilot/Capability=NULL"',
                               'pfqan = "/vo.france-asia.org/Role=pilot"',
                               'pfqan = "/vo.france-asia.org/Role=NULL/Capability=NULL"',
                               'pfqan = "/vo.france-asia.org"',
                               'pfqan = "/ops/Role=lcgadmin/Capability=NULL"',
                               'pfqan = "/ops/Role=lcgadmin"',
                               'pfqan = "/ops/Role=pilot/Capability=NULL"',
                               'pfqan = "/ops/Role=pilot"',
                               'pfqan = "/ops/Role=NULL/Capability=NULL"',
                               'pfqan = "/ops"',
                               'vo = "atlas"',
                               'vo = "bes"',
                               'vo = "belle"',
                               'vo = "biomed"',
                               'vo = "cepc"',
                               'vo = "cms"',
                               'vo = "dteam"',
                               'vo = "esr"',
                               'vo = "enmr.eu"',
                               'vo = "ilc"',
                               'vo = "juno"',
                               'vo = "lhcb"',
                               'vo = "ops"',
                               'vo = "vo.france-asia.org"']
                            },
  centralban_enabled     => true,
  centralban_host        => 'lcg-argus.cern.ch',
  centralban_dn          => '/DC=ch/DC=cern/OU=computers/CN=argus.cern.ch',
  servicecert            => '/etc/grid-security/hostcert.pem',
  servicekey             => '/etc/grid-security/hostkey.pem',
  }
}
